<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="../common.jsp" %>
<html>
<head>
    <title>用户管理</title>
    <link href="${ctx}/static/agent-ui/plugins/layui/css/layui.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/gray/base.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/gray/easyui.css" rel="stylesheet" type="text/css"/>
    <link href="${ctx}/static/easyui/themes/icon.css" rel="stylesheet" type="text/css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/color.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/easyui/themes/default.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/agent-ui/css/buttons.css"/>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/css/player.css"/>
    <link href="${ctx}/static/agent-ui/plugins/font-awesome/css/font-awesome.min.css" rel="stylesheet"/>
    <script>
        var ctx = "${ctx}"
    </script>
    <style>
        .layui-form-pane .layui-form-label {
            width: 150px;
            padding: 8px 15px;
            height: 38px;
            line-height: 20px;
            border-width: 1px;
            border-style: solid;
            border-radius: 2px 0 0 2px;
            text-align: center;
            background-color: #FBFBFB;
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            box-sizing: border-box
        }
        .layui-form-pane .layui-input-block {
            margin-left: 180px;
            left: -1px
        }
    </style>
</head>
<body style="min-width: 1100px;overflow-x: auto">
<div id="receivedListHeader" class="datagrilBtn" style="height: auto">
    <input type="hidden" id="session_roleId" value="<shiro:principal property="roleId"/>"/>
    <form id="search_form" class="layui-form">
        <div class="layui-form-item">
            <%--<div class="layui-inline">
                <input id="ringTime" name="ringTime" class="layui-input" placeholder="请选择工单时间范围"
                       style="width: 240px">
            </div>--%>
            <div class="layui-inline">
                <div class="layui-input-inline">
                    <input name="userName" class="layui-input"  placeholder="请输入登录名">
                </div>
                <div class="layui-input-inline">
                    <input name="displayName" class="layui-input"  placeholder="请输入姓名">
                </div>
                <div class="layui-input-inline">
                    <input name="telphone" class="layui-input" lay-verify="number" placeholder="请输入手机号">
                </div>
                <div class="layui-input-inline">
                    <select name="enabled" >
                        <option value="">请选择</option>
                        <option value="0">不可用</option>
                        <option value="1">可用</option>
                    </select>
                </div>
                <div class="layui-input-inline">
                    <select name="roleId" >

                    </select>
                </div>
            </div>
            <div class="layui-inline">
                <div id="search_submit" class="layui-btn layui-btn-normal">查询</div>
            </div>|
            <div class="layui-inline">
                <div id="addData" class="layui-btn layui-btn-normal">新增</div>
            </div>|
            <div class="layui-inline">
                <div id="syncUser" class="layui-btn layui-btn-normal">从企业号同步用户</div>
            </div>
        </div>
    </form>
</div>
<div class="layui-row" id="add" style="display: none;">
    <form id = "add_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">登录名</label>
            <div class="layui-input-inline">
                <input  id="userName"  name="userName" lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">手机号</label>
            <div class="layui-input-inline">
                <input  id="telphone"  name="telphone" lay-verify="required|number" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">姓名</label>
            <div class="layui-input-inline">
                <input  id="displayName"  name="displayName" lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">角色</label>
            <div class="layui-input-inline">
                <select name="roleId" >

                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">邮箱</label>
            <div class="layui-input-inline">
                <input  id="email"  name="email"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">描述</label>
            <div class="layui-input-inline">
                <input  id="description"  name="description"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">技能组</label>
            <div class="layui-input-inline">
                <input  id="skillDesc"  name="skillDesc"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">分机号</label>
            <div class="layui-input-inline">
                <input  id="extension"  name="extension"  placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">地址</label>
            <div class="layui-input-inline">
                <select name="addressId" >
                    <option value="">请选择</option>
                    <c:forEach  items="${addressMap}" var="addrees">
                        <option value="${addrees.key}">${addrees.value}</option>
                    </c:forEach>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否属于组</label>
            <div class="layui-input-inline">
                <select name="rankId" >
                    <option value="">请选择</option>
                    <option value="0">否</option>
                    <option value="1">是</option>
                </select>
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">是否可用</label>
            <div class="layui-input-inline">
                <select name="enabled" >
                    <option value="">请选择</option>
                    <option value="false">不可用</option>
                    <option value="true">可用</option>
                </select>
            </div>
        </div>
    </form>
</div>
<div class="layui-row" id="process_01" style="display: none;">
    <form id = "process_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">请选择工程师</label>
            <div class="layui-input-inline">
                <select name="currentId">
                </select>
            </div>
        </div>
    </form>
</div>
<div class="layui-row" id="huidan" style="display: none;">
    <form id = "process2_form" class="layui-form layui-form-pane" action="">
        <div class="layui-form-item">
            <label class="layui-form-label">维修处理说明</label>
            <div class="layui-input-inline">
                <input  name="processSpecification" lay-verify="required" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">原因</label>
            <div class="layui-input-inline">
                <input  name="reason" lay-verify="" placeholder="请输入"  class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">处理备注</label>
            <div class="layui-input-inline">
                <input  name="processRemark" lay-verify="" placeholder="请输入"  class="layui-input">
            </div>
        </div>
    </form>
</div>
<div id="list" class="easyui-datagrid" style="min-width:1100px;overflow-x: scroll"></div>

<script type="text/javascript" src="${ctx}/static/jquery/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/jquery.easyui.min.js"></script>
<script type="text/javascript" src="${ctx}/static/easyui/locale/easyui-lang-zh_CN.js"></script>
<script type="text/javascript" src="${ctx}/static/agent-ui/plugins/layui/layui.js"></script>
<script type="text/javascript" src="${ctx}/static/agent/system/user.js"></script>
</body>
</html>
